{"ast":null,"code":"import apiClient from \"../http\";\nimport { deleteContent } from \"../routes\";\nexport default class ContentService {\n  static async deleteContent(data) {\n    return apiClient.delete(deleteContent(data.id || '0'));\n  }\n  static async uploadImage(data) {\n    return apiClient.post(deleteContent(data.id || '0'));\n  }\n  static async uploadFile(data) {\n    return apiClient.post(deleteContent(data.id || '0'));\n  }\n}","map":{"version":3,"names":["apiClient","deleteContent","ContentService","data","delete","id","uploadImage","post","uploadFile"],"sources":["/data/messenger.client/src/services/ContentService.ts"],"sourcesContent":["import apiClient from \"../http\";\nimport {AxiosResponse} from 'axios';\nimport {deleteContent} from \"../routes\"\nimport {ContentListItem} from \"../models/response/ContentListItem\";\nimport {DeleteContentResponse} from \"../models/response/Other/DeleteContentResponse\";\n\nexport default class ContentService {\n\n    public static async deleteContent(data: ContentListItem): Promise<AxiosResponse<DeleteContentResponse>> {\n        return apiClient.delete<DeleteContentResponse>(deleteContent(data.id || '0'));\n    }\n\n    public static async uploadImage(data: ContentListItem): Promise<AxiosResponse<DeleteContentResponse>> {\n        return apiClient.post<DeleteContentResponse>(deleteContent(data.id || '0'));\n    }\n\n    public static async uploadFile(data: ContentListItem): Promise<AxiosResponse<DeleteContentResponse>> {\n        return apiClient.post<DeleteContentResponse>(deleteContent(data.id || '0'));\n    }\n}"],"mappings":"AAAA,OAAOA,SAAS,MAAM,SAAS;AAE/B,SAAQC,aAAa,QAAO,WAAW;AAIvC,eAAe,MAAMC,cAAc,CAAC;EAEhC,aAAoBD,aAAa,CAACE,IAAqB,EAAiD;IACpG,OAAOH,SAAS,CAACI,MAAM,CAAwBH,aAAa,CAACE,IAAI,CAACE,EAAE,IAAI,GAAG,CAAC,CAAC;EACjF;EAEA,aAAoBC,WAAW,CAACH,IAAqB,EAAiD;IAClG,OAAOH,SAAS,CAACO,IAAI,CAAwBN,aAAa,CAACE,IAAI,CAACE,EAAE,IAAI,GAAG,CAAC,CAAC;EAC/E;EAEA,aAAoBG,UAAU,CAACL,IAAqB,EAAiD;IACjG,OAAOH,SAAS,CAACO,IAAI,CAAwBN,aAAa,CAACE,IAAI,CAACE,EAAE,IAAI,GAAG,CAAC,CAAC;EAC/E;AACJ"},"metadata":{},"sourceType":"module"}